package com.rykj.energy.common.enums;

public enum ResponseEnum {
	SUCCESS(0, "成功"),
	FAILED(-1, "失败"),
	ILLEGAL_ARGUMENT(1000,"参数错误"),
	SERVER_ERROR(10001,"服务器内部错误"),
	PRIVILEGE_ERROR(10002,"该权限访问不到资源");


	private int code;
	private String message;

	ResponseEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
}
